//
//  NotesBuyTableViewCell.m
//  GoodWayClient
//
//  Created by newhuidong on 16/1/4.
//  Copyright © 2016年 HuiDong. All rights reserved.
//

#import "NotesBuyTableViewCell.h"

@implementation NotesBuyTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+(instancetype)NotesBuyWithTableView:(UITableView *)tableView{
    
    static NSString * identifer =@"cell";
    
    NotesBuyTableViewCell* cell =[tableView dequeueReusableCellWithIdentifier:identifer];
    
    if (cell==nil) {
        
        cell=[[[NSBundle mainBundle]loadNibNamed:@"NotesBuyTableViewCell" owner:nil options:nil ]lastObject];
        
        
    }
    
    
    return cell;
}
- (void)setDic:(NSDictionary *)dic
{
    _dic = dic;
    self.addressLabel.text = dic[@"name"];
    self.detailLabel.text = dic[@"event"];
    self.orSuccess.text = dic[@"time"];
}

@end
